<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$_data["Bet_Type"] = trim($_data["Bet_Type"]);
$_data["GambleID"] = intval(trim($_data["GambleID"]));
$_data["isStopBet"] = intval(trim($_data["isStopBet"]));
$_data["LottoID"] = intval(trim($_data["LottoID"]));
$_data["isSpecial"] = trim($_data["isSpecial"]);

if($_data["Bet_Type"] == "" || $_data["GambleID"] < 1){
	$GLOBALS["errormessage"] = "Data Error!!";
	$GLOBALS["errorhidden"] = "\nBetType:".$_data["Bet_Type"]."\nGambleID:".$_data["GambleID"]."\nLottoID:".$_data["LottoID"]."\nLine:".__LINE__."\nPage:".__FILE__;
	ErrMsgOutputHTML("Error", "", 1);
}
if(!StopLayerAllRealBet($_data["GambleID"], $_data["LottoID"], $_data["Bet_Type"], $_data["isStopBet"], $_data["strLottoNumber"], $_SESSION["Admin_Info"] -> ID))ErrMsgOutputHTML("Error", "", 1);
$strLog = "操盤序號：".$_data["GambleID"]."\n";
$strLog .= "下注種類：".$_data["Bet_Type"]."\n";
$strLog .= "是否停押：".$_data["isStopBet"]."\n";
$strLog .= "停押號碼：".$_data["strLottoNumber"]."\n";
AddData_Log($_SESSION["Admin_Info"] -> ID, "停押", $strLog);
?>